Component({
    properties: {
        order_data: {
            type: Object
        }
    },
    data: {
        language: "",
        showMore: !1
    },
    lifetimes: {
        attached: function() {
            var a = wx.getStorageSync("langIndex");
            this.setData({
                language: a.en
            });
        }
    },
    methods: {
        toggle: function() {
            this.setData({
                showMore: !this.data.showMore
            });
        },
        toGoodsDetail: function(a) {
            var e = a.currentTarget.dataset.good;
            if (this.data.order_data.deposit_ladder && this.data.order_data.deposit_ladder.activity_id || this.data.order_data.deposit_ladder_dj && this.data.order_data.deposit_ladder_dj.activity_id) {
                var t = this.data.order_data.deposit_ladder && this.data.order_data.deposit_ladder.activity_id ? this.data.order_data.deposit_ladder.activity_id : this.data.order_data.deposit_ladder_dj.activity_id;
                wx.navigateTo({
                    url: "/packageH/deposit_group/activity_index/activity_index?id=" + t
                });
            } else if (54 == this.data.order_data.plugin_id) {
                var d = null;
                e.store_id && 0 != e.store_id && "undefined" != e.store_id && (d = "/" + e.store_id), 
                wx.navigateTo({
                    url: "/packageA/detail_v2/detail_v2?id=0" + d + "&name=group&fight_groups=" + e.goods_id
                });
            } else wx.navigateTo({
                url: "/packageA/detail_v2/detail_v2?id=" + e.goods_id
            });
        },
        evaluateOpration: function(a) {
            var e = a.target.dataset.btn, t = a.target.dataset.goods, d = a.target.dataset.order.id;
            if (0 == e.value) wx.navigateTo({
                url: "/packageD/member/evaluate/evaluate?order_id=" + d + "&id=" + t.id
            }); else if (1 == e.value) wx.navigateTo({
                url: "/packageD/member/addevaluate/addevaluate?order_id=" + d + "&item=" + JSON.stringify(t)
            }); else if (2 == e.value) {
                var i = "?order_id=" + d;
                i = (i = (i = i + "&goods_id=" + t.has_one_comment.goods_id) + "&comment_id=" + t.has_one_comment.id) + "&order_goods_id=" + t.id, 
                wx.navigateTo({
                    url: "/packageD/member/CommentDetails/CommentDetails" + i
                });
            }
        }
    }
});